package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.GoodsBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetGoodsListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetGoodsListModel extends RetrofitBaseModel implements GetGoodsListIface<GoodsBean> {

    private AllService allService;
    private Retrofit retrofit;
    public GetGoodsListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getGoodsList(String shopid, ListListener<GoodsBean> listListener) {
        Call<List<GoodsBean>> call = allService.getGoodsList(shopid);
        callenqueueList(call,listListener);
    }
}
